package sweezy.swf.tools.abcbuilder
{
	import sweezy.swf.tools.abcbuilder.utils.ElementList;

	public class ABCDef
	{

		private var _scripts:ElementList;

		public function ABCDef()
		{
			_scripts = new ElementList();
		}

		public function addScript(script:ScriptDef):void
		{
			_scripts.addElement(script);
		}

		public function getScript(uid:uint):ScriptDef
		{
			return _scripts.getElementByUID(uid) as ScriptDef;
		}

		public function get numScripts():uint
		{
			return _scripts.numElements;
		}

		public function removeScript(script:ScriptDef):void
		{
			_scripts.removeElement(script);
		}

		public function get scripts():Array
		{
			return _scripts.elements;
		}
	}
}
